package se.webbzon.boltzmann.login;

import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URL;

public class HTTPGetRequest extends HTTPRequest {
	
	/*============================================================
	Constructors
	============================================================*/
	
	/** Creates a new HTTP get request. **/
	public HTTPGetRequest(URL url) throws IOException {
		this(url,null,null);
	}
	
	/** Creates a new HTTP get request. **/
	public HTTPGetRequest(URL url, HTTPCookie[] cookies) throws IOException {
		this(url,null,cookies);
	}
	
	/** Creates a new HTTP get request. **/
	public HTTPGetRequest(URL url, LoginAccess access) throws IOException {
		this(url,access,null);
	}

	/** Creates a new HTTP get request. **/
	public HTTPGetRequest(URL url, LoginAccess access, HTTPCookie[] cookies) throws IOException {
		super(url, access, cookies);
		HttpURLConnection conn = this.getHttpURLConnection();
		conn.setRequestMethod("GET");
	}

}
